import request from 'utils/request'

// 后台分页咋搞？获取知识列表
export function getKnowldList() {
    return request({
        url: '/know/list',
        method: 'get',
    })
}

// 根据id获取技术知识
export function getKnowById(id) {
    return request({
        url: '/know/select?id=' + id,
        method: 'get',
    })
}

// 添加技术知识
export function addKnow(data) {
    return request({
        url: '/know/add',
        method: 'post',
        data
    })
}

// 修改技术知识
export function updateKnow(data) {
    return request({
        url: '/know/update',
        method: 'post',
        data
    })
}

// 删除技术知识
export function deleteKnow(id) {
    return request({
        url: '/know/delete?id=' + id,
        method: 'get',
    })
}